package com.randb.fakeeasyhttp;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.randb.easyhttp.EasyHttp;
import com.randb.easyhttp.callback.SimpleCallback;
import com.randb.easyhttp.exception.ApiException;
import com.randb.easyhttp.model.ApiResult;
import com.randb.easyhttp.model.HttpParams;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        EasyHttp.getInstance()
                .setBaseUrl("https://www.baidu.com")
                .setConnectTimeOut(60 * 1000)
                .setWriteTimeOut(60 * 1000)
                .setReadTimeOut(60 * 1000);

          EasyHttp.get("/v1/app/chairdressing/skinAnalyzePower/skinTestResult")
                .timeStamp(true)
                .execute(new SimpleCallback<String>() {
                    @Override
                    public void onSuccess(String s) {

                    }

                    @Override
                    public void onError(ApiException e) {

                    }
                });
    }


}
